<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Cache-Control"  content="no-transform">
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>夺宝记录</title>
    <link href="/statics/view/css/yy_common.css" rel="stylesheet">
    <link href="/statics/view/css/yy_user.css" rel="stylesheet">
</head>
<body>
<div class="m-user" id="dvWrapper">
    <div class="m-simpleHeader" id="dvHeader">
        <a href="/member/dbRecord/list" data-pro="back" style="padding: 10px 15px;" data-back="true" class="m-simpleHeader-back"><i class="ico ico-back"></i></a>
        <h1>中奖记录</h1>
    </div>
    <div class="m-user-winDetail">
        <div class="status">
            <div class="m-user-winDetail-hd">商品状态</div>
            <div class="m-user-progress">
                <div class="m-user-progress-item over">
                    <div class="txt">获得商品</div>
                    <div class="aside">${entity.dbTimes.endDate?string("MM-dd HH:mm")}</div>
                    <div class="bdr"></div>
                    <div class="dot"></div>
                </div>
                <div class="m-user-progress-item over">
                    <div class="txt">确认收货地址</div>
                    <div class="aside">[#if entity.shippingDate??]${entity.shippingDate?string("MM-dd HH:mm")}[#else]<a href="/member/receiver/list?tag=/member/dbRecord/winDetail-${entity.id}">完善收货地址</a>[/#if]</div>
                    <div class="cont"></div>
                    <div class="bdr"></div>
                    <div class="bdr bdr-expand"></div>
                    <div class="dot"></div>
                </div>
                <div class="m-user-progress-item over">
                    <div class="txt">商品派发</div>
                    <div class="aside">
                      [#if entity.shippingDate??]
                          [#if entity.shippingStartDate??] ${entity.shippingStartDate?string("MM-dd HH:mm")}[#else]请耐心等待..[/#if]
                      [/#if]
                    </div>
                    <div class="bdr"></div>
                    <div class="dot"></div>
                </div>
                <div class="m-user-progress-item over">
                    <div class="txt">确认收货</div>
                    <div class="aside">
                    [#if entity.shippingStartDate??]
                        [#if entity.shippingEndDate??] ${entity.shippingEndDate?string("MM-dd HH:mm")}[#else]<a class="dialog-confirm" href="/member/dbRecord/winDetail-${entity.id}-sh">确认收货</a> [/#if]
                    [/#if]
                    </div>
                    <div class="bdr"></div>
                    <div class="dot"></div>
                </div>
            [#if entity.shippingEndDate??]
                <div class="m-user-progress-item over">
                    <div class="txt txt-suc"><strong>已签收</strong></div>
                    <div class="aside">
                        [#if entity.isShare??]已晒单[#else]<a href="/member/dbShare-tip-${entity.id}">晒单</a>[/#if]
                    </div>
                    <div class="bdr"></div>
                    <div class="dot"></div>
                </div>
            [/#if]
            </div>
        </div>
        [#if entity.shippingStartDate]
            <div class="addressInfo">
                <p>物流公司：${entity.shippingMethodName}</p>
                <p>运单号码：${entity.shippingSn}</p>
            </div>
            [#if traces??]
                <div class="status">
                    <div class="m-user-progress">
                        [#list traces as t]
                            <div class="m-user-progress-item over" style="border-bottom: 1px solid #ddd;height: auto;">
                                <div class="txt">${t.acceptStation}<span style="color: green;">&nbsp;${t.acceptTime}</span></div>
                                <div class="aside"></div>
                                <div class="bdr"></div>
                                <div class="dot"></div>
                            </div>
                        [/#list]
                    </div>
                </div>
            [/#if]
        [/#if]
        [#if entity.shippingDate]
            <div class="m-user-winDetail-hd">收货信息</div>
            <div class="m-user-addrList">
                <div class="item ">
                    <div class="name">${entity.consignee}</div>
                    <div class="mobile">
                    ${entity.phone}
                    </div>
                    <div class="detail">${entity.areaName} &nbsp; ${entity.address}</div>
                </div>
            </div>
         [/#if]
        <div class="m-user-winDetail-hd">商品信息</div>
        <ul class="w-goodsList w-goodsList-l m-user-goodsList">
            <li class="w-goodsList-item">
                <div class="w-goods w-goods-l w-goods-ing m-user-goods">
                    <div class="w-goods-pic">
                        <a href="/dbs/product-${entity.productId}-${entity.dbTimes.timesNo}.html">
                            <img alt="${entity.name}" src="${entity.productMedium}" onerror="" class="">
                        </a>
                    </div>
                    <div class="w-goods-info">
                        <p class="w-goods-title f-txtabb"><a href="">${entity.name}</a></p>
                        <p class="w-goods-price">总需：${entity.dbTimes.quantity} 人次</p>
                        <p class="w-goods-period">期号：${entity.dbTimes.timesNo}</p>
                        <p class="m-user-goods-code">幸运号码：<span class="txt-impt">${entity.dbTimes.timesCode}</span></p>
                        <p class="m-user-goods-time">本期参与：${entity.quantity}人次</p>
                        <p class="m-user-goods-time">揭晓时间：${entity.dbTimes.endDate}</p>
                    </div>
                </div>
            </li>
        </ul>
    </div>
</div>
<script src="//cdn.bootcss.com/jquery/2.1.0/jquery.min.js"></script>
<script src="/statics/view/js/db.js"></script>
<script type="text/javascript" src="/statics/layer.m/layer.m.js"></script>
<script type="text/javascript">
    $(function(){
        $(".dialog-confirm").click(function(){
            var href=$(this).attr("href");
            layer.open({
                title: '提示',
                content: ' 您确认已经收到货物了？',
                btn: ['确定', '取消'],
                yes: function(index){
                    window.location.href=href;
                }
            });
            return false;
        });
    });
</script>
<div class="cnzz" style="display: none;">
    <script src="http://s4.cnzz.com/z_stat.php?id=1259390685&web_id=1259390685" language="JavaScript"></script>
</div>
</body>
</html>